<template>
  <BasicTable @register="registerTable" />
</template>
<script lang="ts" setup>
  import { BasicTable, useTable } from '@/components/Table';
  import { getPage } from '@/api/sys/monitor/onlineUserManage';
  import { columns, searchFormSchema } from './data';
  import { useI18n } from '@/hooks/web/useI18n';

  const { t } = useI18n();
  const [registerTable] = useTable({
    title: t('列表'),
    api: getPage,
    columns,
    formConfig: {
      labelWidth: 120,
      schemas: searchFormSchema,
    },
    useSearchForm: true,
    
    bordered: true,
    showIndexColumn: false,
  });
</script>
